home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 2: PC / frozenfish_august_1995.bin / bbs / d09xx / d0930.lha / RCON / Install RCON < prev    next >
Text File  |  1993-10-07  |  2KB  |  81 lines

  1. ; Install-Script fⁿr RCON demo
  2. ;
  3. ; ⌐ 1993 Gerhard Radatz
  4. ;
  5. ; $VER:RCONInstall 1.0 (18-Sep-93)
  6.  
  7. (set @app-name "RCON Console Handler 1.0 Demo")
  8.  
  9. (set @language "english")
  10.  
  11. (complete 0)
  12.  
  13. (set vernum (getversion))
  14. (if (< (/ vernum 65536) 37)
  15.     (abort "*** Installation aborted! ***\n You need at least version 2.04 of the OS to run RCON"))
  16.  
  17. (set @default-dest "l:")
  18.  
  19. (set sourcedir (pathonly @icon))
  20.  
  21. (copyfiles (prompt "copying RCON-Handler and RCON-Server...")
  22.        (source (tackon sourcedir "l/"))
  23.        (dest    @default-dest)
  24.        (choices "RCON-Handler" "RCON-Server"))
  25.  
  26. (copyfiles (prompt "copying RCON-mountlist...")
  27.        (source (tackon sourcedir "devs/"))
  28.        (dest   "devs:")
  29.        (choices "RCON-mountlist"))
  30.  
  31. (complete 40)
  32.  
  33. (copyfiles (prompt "copying RCON-Prefs...")
  34.        (source (tackon sourcedir "prefs/"))
  35.        (dest   "sys:Prefs")
  36.        (choices "RCON-Prefs")
  37.        (infos))
  38.  
  39. (makedir   "ENVARC:rcon" (prompt "Creating preferences directories for RCON..."))
  40.  
  41. (complete 70)
  42.  
  43. (if (askbool ((prompt "Do you want to install RCON as the default console handler ?")
  44.           (help   (cat "Installing RCON as the default handler means that it will replace \
  45. the built-in CON-Handler. If you select NO here, RCON will be mounted as RCON:, which means that \
  46. you have to type 'newshell RCON:' if you want to get an RCON shell window"))))
  47.  
  48.     (copyfiles (source (tackon sourcedir "s/InstallCON/RCONinstall"))
  49.            (dest   "s:"))
  50.     (copyfiles (source (tackon sourcedir "s/InstallRCON/RCONinstall"))
  51.            (dest   "s:"))
  52. )
  53.  
  54. (complete 80)
  55.  
  56. (startup "RCON"
  57.     (command "execute s:RCONinstall")
  58.     (prompt  "Shall the RCON-Handler be mounted during booting ?")
  59.     (help    (cat "If you click PROCEED here, your s:user-startup file will be modified to \
  60. mount the RCON Handler during startup.\n If you click SKIP THIS PART, you will have to execute the \
  61. S:RCONinstall script manually later on."))
  62. )
  63.  
  64. (complete 90)
  65.  
  66. (copyfiles (source (tackon sourcedir "Documentation/"))
  67.        (dest (askdir (prompt "Where do you want to install the documentation of RCON ?")
  68.              (help   "Please indicate the directory where the amigaguide documentation of RCON shall be copied")
  69.              (default "sys_help:")
  70.              (newpath)
  71.              (disk)
  72.          ))
  73.        (infos)
  74.        (pattern "#?.guide"))
  75.  
  76. (complete 100)
  77.  
  78. (exit "Please reboot your computer to get the installation work or "
  79.       "type in the command 'execute s:RCONinstall' manually")
  80.  
  81.